import { Tag } from "element-plus";
import { User } from "./user";

export interface Video {
  id: string;
  title: string;
  describe: string;
  createUser: string;
  createTime: string;
  updateTime: string;
  channel: number;
  videoPath: string;
  coverPath: string;
  totalTime: number;
  viewCount: string;
  barrageCount: string;
  type: 0 | 1; // 视频类型, 0：自制，1：转载
  likeCount: string;
  collectCount: string;
  commentCount: string;
  user: User;
  isLike: boolean;
  isCollect: boolean;
  score: number;
  tags?: Tag[];
}

export type VideoRankType = "daily" | "week" | "month";

export interface PageByUserId {
  userId: string;
  pageIndex: number;
  pageSize: number;
  sortType: 1 | 2; // 1：最新，2：最多播放
  channelId?: number
}
